<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>

    var gender = prompt('请告诉我你的性别');
    switch(gender){
        case '男':
        case '男人':
        case '男孩':
        alert('请上二楼')
        break;
        case '女':
        case '女人':
        case '女孩':
        alert('请上三楼')
        break;
        case '人妖':
        alert('滚')
        break;
        default:
        alert('我不知道你在说什么')
        break;
    }

</script>
</html>